package com.aspose.cells;

class zbhd extends zcj {
   zbhd(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      float var7 = 0.0F;
      float var8 = 0.0F;
      float var9 = 0.0F;
      float var10 = 0.0F;
      float var11 = 0.0F;
      switch(this.e.l.a.size()) {
      case 1:
         if (((zak)this.e.l.a.get(0)).b() == 327) {
            var9 = var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var10 = var4 * 0.40097222F;
            var11 = var5 * 0.28800926F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328) {
            var9 = var4 * 0.29833335F;
            var10 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var11 = var5 * 0.28800926F;
         } else {
            var9 = var4 * 0.29833335F;
            var10 = var4 * 0.40097222F;
            var11 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         }
         break;
      case 2:
         if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 328) {
            var9 = var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var10 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var11 = var5 * 0.28800926F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 329) {
            var9 = var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var10 = var4 * 0.40097222F;
            var11 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328 && ((zak)this.e.l.a.get(1)).b() == 329) {
            var9 = var4 * 0.29833335F;
            var10 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var11 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         }
         break;
      case 3:
         var9 = var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
         var10 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         var11 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         break;
      default:
         var9 = var4 * 0.29833335F;
         var10 = var4 * 0.40097222F;
         var11 = var5 * 0.28800926F;
      }

      var6 = var4 - var10 * 2.0F;
      var8 = (var4 - var9 * 2.0F) / 2.0F;
      float var12 = var4 / 2.0F - var11;
      float var14 = var6 / 2.0F;
      float var15 = var11 - var6 / 2.0F;
      float var16 = var4 / 2.0F - var14;
      com.aspose.cells.b.a.b.zo[] var17 = new com.aspose.cells.b.a.b.zo[17];
      switch(this.e.a) {
      case 1:
      case 4:
         var17[0] = new com.aspose.cells.b.a.b.zo(var2 + var12, var3 + var8);
         var17[1] = new com.aspose.cells.b.a.b.zo(var2 + var4 / 2.0F, var3);
         var17[2] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var12, var3 + var8);
         var17[3] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var16, var3 + var8);
         var17[4] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var16, var3 + var5 - var15 - 2.0F * var14);
         var17[5] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var5 - var15 - 2.0F * var14);
         var17[6] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var5 - 2.0F * var15 - 2.0F * var14);
         var17[7] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 - var15 - var14);
         var17[8] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var5);
         var17[9] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var5 - var15);
         var17[10] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5 - var15);
         var17[11] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5);
         var17[12] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 - var15 - var14);
         var17[13] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5 - 2.0F * var15 - 2.0F * var14);
         var17[14] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5 - var15 - 2.0F * var14);
         var17[15] = new com.aspose.cells.b.a.b.zo(var2 + var16, var3 + var5 - var15 - 2.0F * var14);
         var17[16] = new com.aspose.cells.b.a.b.zo(var2 + var16, var3 + var8);
         break;
      case 2:
      case 3:
         var17[0] = new com.aspose.cells.b.a.b.zo(var2 + var12, var3 + var5 - var8);
         var17[1] = new com.aspose.cells.b.a.b.zo(var2 + var4 / 2.0F, var3 + var5);
         var17[2] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var12, var3 + var5 - var8);
         var17[3] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var16, var3 + var5 - var8);
         var17[4] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var16, var3 + var15 + var6);
         var17[5] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var15 + var6);
         var17[6] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + 2.0F * var11);
         var17[7] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var11);
         var17[8] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3);
         var17[9] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var15);
         var17[10] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var15);
         var17[11] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3);
         var17[12] = new com.aspose.cells.b.a.b.zo(var2, var3 + var11);
         var17[13] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + 2.0F * var11);
         var17[14] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + 2.0F * var11 - var15);
         var17[15] = new com.aspose.cells.b.a.b.zo(var2 + var16, var3 + 2.0F * var11 - var15);
         var17[16] = new com.aspose.cells.b.a.b.zo(var2 + var16, var3 + var5 - var8);
      }

      com.aspose.cells.b.a.b.a.ze var18 = new com.aspose.cells.b.a.b.a.ze();
      var18.b(var17);
      return var18;
   }
}
